Bug 565656 – Add marks to scales
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 20 Jan 2009 05:10:27 +0000 (05:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 20 Jan 2009 05:10:27 +0000 (05:10 +0000)
commit26490a2dd7224eb021bbbc7c2b6051a68ee5c247
treeac93a899ee2bc1935fdbd05cc9c784572f6dc605
parentb6b52376631e52542237b7f229bb67ab57332746
Bug 565656 – Add marks to scales

        Bug 565656 – Add marks to scales

        * gtk/gtkrange.[hc]: Add internal api to define 'stop values'
        that have a little resistance when dragging the slider over it.

        * gtk/gtk.symbols:
        * gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add
        a 'mark' to a scale, which will draws a tick, plus optionally
        some text, and makes the value a stop value.
        (gtk_scale_clear_values): Removes all marks.

        * tests/testscale.c: Test for marks on scales
        * tests/Makefile.am: Integrate it

svn path=/trunk/; revision=22149
ChangeLog
docs/reference/ChangeLog
docs/reference/gtk/gtk-sections.txt
gtk/gtk.symbols
gtk/gtkrange.c
gtk/gtkrange.h
gtk/gtkscale.c
gtk/gtkscale.h
tests/Makefile.am
tests/testscale.c [new file with mode: 0755]